import request from '@/utils/request'

/**
* 钎焊记录分页查询
* @param {查询条件} data
*/
export function listCksBrazingRecord(query) {
  return request({
    url: 'business/CksBrazingRecord/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增钎焊记录
* @param data
*/
export function addCksBrazingRecord(data) {
  return request({
    url: 'business/CksBrazingRecord',
    method: 'post',
    data: data,
  })
}
/**
* 修改钎焊记录
* @param data
*/
export function updateCksBrazingRecord(data) {
  return request({
    url: 'business/CksBrazingRecord',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取钎焊记录详情
* @param {Id}
*/
export function getCksBrazingRecord(id) {
  return request({
    url: 'business/CksBrazingRecord/' + id,
    method: 'get'
  })
}

/**
* 删除钎焊记录
* @param {主键} pid
*/
export function delCksBrazingRecord(pid) {
  return request({
    url: 'business/CksBrazingRecord/delete/' + pid,
    method: 'delete'
  })
}
/**
* 查询曲线数据
* @param data
*/
export function GetDegrees(data) {
  return request({
    url: 'business/CksBrazingRecord/GetDegrees',
    method: 'post',
    data: data,
  })
}